﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ChangeBullet : Skill
{
    public Player player;
    public GameObject BulletPrafab;

    public override void Active(GameObject go)
    {
        
        if (go.tag == "Player")
        {
            once = true;
            go.transform.GetComponent<Player>().rootShot = false;
            go.transform.GetComponent<Player>().bulletPrefab = BulletPrafab;

        }
        else if (go.tag == "Enemy")
        {
            go.transform.GetComponent<Enemy>().rootShot = false;
            go.transform.GetComponent<Enemy>().bulletPrefab = BulletPrafab;

        }
    }
}
